from typing import Optional

from pydantic import BaseModel, Field


class LoginRequest(BaseModel):
    username: str
    password: str
    captcha: str
    is_quick: bool = Field(..., alias="isQuick")
    language: Optional[str] = Field(None, alias="language")
    captcha_key: Optional[str] = Field(None, alias="captchaKey")
